package com.ktwlsoft.archivemanage.payload.adNotify;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 添加通知请求
 */
@Setter
@Getter
public class AddAdNotifyRequest {

    @NotNull(message = "标题不能为空")
    private String title;

    private String subTitle;

    @NotNull(message = "轮播图不能为空")
    private String imgUrl;

    @NotNull(message = "内容不能为空")
    private String content;

    private String tag;

    @NotNull(message = "是否呈现不能为空")
    private Integer show = 1;

    @ApiModelProperty("是否上架")
    private Boolean Up;

    @Override
    public String toString() {
        return "AddAdNotifyRequest{" +
                "title='" + title + '\'' +
                ", subTitle='" + subTitle + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", content='" + content + '\'' +
                ", tag='" + tag + '\'' +
                ", show=" + show +
                '}';
    }

    public AddAdNotifyRequest() {
    }

    public AddAdNotifyRequest(@NotNull(message = "标题不能为空") String title, String subTitle, @NotNull(message = "轮播图不能为空") String imgUrl, @NotNull(message = "内容不能为空") String content, String tag, @NotNull(message = "是否呈现不能为空") Integer show) {
        this.title = title;
        this.subTitle = subTitle;
        this.imgUrl = imgUrl;
        this.content = content;
        this.tag = tag;
        this.show = show;
    }
}
